home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2826 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  900 b 

  1. Path: news.cencom.net!ns!tanp
  2. From: tanp@ns (Bill Wendling)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Matrix Multiplication
  5. Date: 24 Jan 1996 05:15:51 GMT
  6. Organization: Cen-Com Internet
  7. Message-ID: <4e4fa7$51o@news.cencom.net>
  8. References: <1996Jan22.110440@gamma.ntu.ac.sg>
  9. NNTP-Posting-Host: ns.cencom.net
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Long inexplicably wrote:
  13. } Dear all,
  14.  
  15. } I would like to know whether anyone of you out there has better ways to
  16. } do matrix multiplication (optimised for speed) in C either than using
  17. } two nested for loops.
  18.  
  19. Try using Gaussian Elimination to make the array have either only
  20. values on the diagnol or one value...Then multiply with just one for loop.
  21.  
  22. Does this help?
  23.  
  24. --
  25. Bill Wendling         | "Pinky, are you thinking what I'm thinking?"
  26. tanp@ns.cencom.net  | "I think so, Brain, but burlap chafes me so."
  27. "Boom Shanka"       | Finger me for my Geek Code...NOW!
  28.